<template>
  <div class="appbox them-gr">
    <div class="view">
      <router-view></router-view>
    </div>
  </div>
</template>
<script setup lang="ts">
import { onMounted } from "vue";

onMounted(() => {
  const theme = localStorage.getItem("them");
  if (theme) {
    document.documentElement.setAttribute("data-them", theme);
  }
});
</script>

<style lang="scss">
.appbox {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #444343;
  transition: all 0.9s;
  user-select: none;
  .view {
    width: 90%;
    height: 94%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 100px -25px var(--them-color2);
  }
}
</style>
